package com.lv.LvRefundRatio.bean;

import com.aqgj.util.BaseEntity;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.math.BigDecimal;

@Entity
@Table(name = "lv_refund_ratio")
public class LvRefundRatio implements BaseEntity{

    private String id;//

    private Integer startPoint;//开始时间（时间节点“0”表示发车时刻点，单位为小时）

    private Integer endPoint;//结束时间（时间节点“0”表示发车时刻点，单位为小时）

    private BigDecimal chargeScale;//扣费比例（%）

    private String isRefund;//是否允许退票（1允许，2不允许）

    private String fkLvRefundRatioInfoId;//退款比例设置信息ID

    private Integer status;//前端标识

    public void setId(String value){ this.id = value;}
    public void setStartPoint(Integer startPoint) { this.startPoint = startPoint;}
    public void setEndPoint(Integer endPoint) { this.endPoint = endPoint;}
    public void setChargeScale(BigDecimal chargeScale) { this.chargeScale = chargeScale;}
    public void setIsRefund(String isRefund) { this.isRefund = isRefund;}
    public void setFkLvRefundRatioInfoId(String fkLvRefundRatioInfoId) { this.fkLvRefundRatioInfoId = fkLvRefundRatioInfoId;}
    public void setStatus(Integer status) { this.status = status;}


    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)

    public String getId(){
        return this.id;
    }
    @Column(name ="start_point",unique=false,nullable=true,insertable=true,updatable=true,length=11)
    public Integer getStartPoint() { return startPoint;}
    @Column(name ="end_point",unique=false,nullable=true,insertable=true,updatable=true,length=11)
    public Integer getEndPoint() { return endPoint;}
    @Column(name ="charge_scale",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public BigDecimal getChargeScale() { return chargeScale;}
    @Column(name ="is_refund",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public String getIsRefund() { return isRefund;}
    @Column(name ="fk_lv_refund_ratio_info_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getFkLvRefundRatioInfoId() { return fkLvRefundRatioInfoId;}
    @Column(name ="status",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public Integer getStatus() {  return status; }
}
